/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

/**
 *
 * @author TiOc
 */
public class Catalogue implements java.io.Serializable
{
    //<editor-fold defaultstate="collapsed" desc="1. Các thuộc tính">
    private int idCatalogue;
    private String nameCatalogue;
    private int idBrandName;
    private String link;
    private int order;
    private int isPublish;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Các phương thức khởi tạo">
    public Catalogue()
    {
        this.idCatalogue = -1;
        this.nameCatalogue = "";
        this.idBrandName = -1;
        this.link = "";
        this.order = -1;
        this.isPublish = -1;
    }

    public Catalogue(Integer idCatalogue, String nameCatalogue, int idBrandName, String link, int order, int isPublish)
    {
        this.idCatalogue = idCatalogue;
        this.nameCatalogue = nameCatalogue;
        this.idBrandName = idBrandName;
        this.link = link;
        this.order = order;
        this.isPublish = isPublish;
    }

    public Catalogue(Catalogue cl) 
    {
        this.idCatalogue = cl.idCatalogue;
        this.nameCatalogue = cl.nameCatalogue;
        this.idBrandName = cl.idBrandName;
        this.link = cl.link;
        this.order = cl.order;
        this.isPublish = cl.isPublish;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="3. Các phương thức get/set">

    public int getIdBrandName() {
        return idBrandName;
    }

    public void setIdBrandName(int idBrandName) {
        this.idBrandName = idBrandName;
    }

    public Integer getIdCatalogue() {
        return idCatalogue;
    }

    public void setIdCatalogue(Integer idCatalogue) {
        this.idCatalogue = idCatalogue;
    }

    public int getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(int isPublish) {
        this.isPublish = isPublish;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getNameCatalogue() {
        return nameCatalogue;
    }

    public void setNameCatalogue(String nameCatalogue) {
        this.nameCatalogue = nameCatalogue;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
    
    @Override
    public String toString()
    {
        return this.nameCatalogue;
    }
    //</editor-fold>
}
